Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / ListBase<T> Class / Insert Method
The zero-based index at which item should be inserted.
The object to insert into the ListBase.


In This Topic
    Insert Method (ListBase<T>)
    In This Topic
    Inserts an item into the ListBase at the specified index.
    Syntax
    'Declaration
     
    Public Overridable Sub Insert( _
       ByVal index As Integer, _
       ByVal item As T _
    ) 
    'Usage
     
    Dim instance As ListBase(Of T)
    Dim index As Integer
    Dim item As T
     
    instance.Insert(index, item)
    public virtual void Insert( 
       int index,
       T item
    )

    Parameters

    index
    The zero-based index at which item should be inserted.
    item
    The object to insert into the ListBase.
    Remarks

    The OnBeforeListChanged method is called before the list is changed.

    The OnListChanged method is called after the list is changed.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also